import Vue from 'vue'
import VueRouter from 'vue-router'
import Home from '../views/Home.vue'
import My from '../views/My.vue'
import Center from '../views/Center'
import Dingdan from '../views/Dingdan'
import Ziliao from '../views/Ziliao'
import Youhj from '../views/Youhj'
import Huiyuan from '../views/Huiyuan'

Vue.use(VueRouter)

const routes = [
  {
    path:'/huiyuan',
    name:"Huiyuan",
    component:Huiyuan
  },
  {
    path:'/youhj',
    name:"Youhj",
    component:Youhj
  },
  {
    path:'/ziliao',
    name:"Ziliao",
    component:Ziliao
  },
  {
    path:'/dingdan',
    name:"Dingdan",
    component:Dingdan
  },
  {
    path:'/center',
    name:"Center",
    component:Center
  },
  {
    path:'/my',
    name:"My",
    component:My
  },
  {
    path: '/',
    name: 'Home',
    component: Home
  },
  {
    path: '/about',
    name: 'About',
    // route level code-splitting
    // this generates a separate chunk (about.[hash].js) for this route
    // which is lazy-loaded when the route is visited.
    component: () => import(/* webpackChunkName: "about" */ '../views/About.vue')
  }
]

const router = new VueRouter({
  mode: 'history',
  base: process.env.BASE_URL,
  routes
})

export default router
